package com.homestead.exception;

/**
 * @author HanBin_Yang
 * @since 2021/4/10 21:32
 */
public class UserException extends BusinessException {

    public UserException(ResponseErrorCode errorCode) {
        super(errorCode.getCode(), errorCode.getMessage());
    }

    public UserException(ResponseErrorCode errorCode, Throwable throwable) {
        super(errorCode.getCode(), errorCode.getMessage(), throwable);
    }

    public UserException(String code , String message) {
        super(code, message);
    }

    public UserException(String code , String message, Throwable throwable) {
        super(code, message, throwable);
    }
}
